import { get, post, del, put } from "../utils/request";
export const loadProducts = (page) => get("/api/v1/admin/product", { page });
export const addProducts = (data) => post("/api/v1/admin/product", data);

export const updataProducts = (id, data) =>
  put(`/api/v1/admin/product/${id}`, data);

export const deleteProducts = (id) => del("/api/v1/admin/product/" + id);
